{extend name="public:base" /}

{block name="css"}
<style>
  .census span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    float: left;
    margin-left: 60px;
  }
</style>
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">

                <div class="ibox-content">
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>监测时间</th>
                                <th>访问状态</th>
                                <th>持续时间</th>
                                <th>日志路径</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.check_time|timeFormat}</td>
                                {if $vo.status == 0}
                                <td style="color: red">异常</td>
                                {else /}
                                <td style="color: green">正常</td>
                                {/if}
                                <td>{$vo.status == 0 ? errorKeepTime(3, $vo.live_id, $vo.id, $vo.check_time) : ''}</td>
                                <td>{$vo.log_file_path}</td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

{/block}

{block name="js"}
<script src="/static/laydate/laydate.js"></script>
<script>
    laydate.render({
        elem: '.screen-date' //指定元素
    });
</script>

{/block}

